package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class XJEventRowMapper implements RowMapper<XJEvent>{


	@Override
	public XJEvent mapRow(ResultSet rs, int rowNum) throws SQLException {
		XJEvent  lj= new XJEvent();
		lj.setId(rs.getInt("id"));
		lj.setEvent_title(rs.getString("event_title"));
		lj.setEvent_time(rs.getTimestamp("event_time"));
		lj.setEvent_site(rs.getString("event_site"));
		lj.setEvent_cate(rs.getInt("event_cate"));
		lj.setEvent_gis(rs.getString("event_gis"));
		lj.setHas_plan(rs.getInt("has_plan"));
		lj.setEme_event_id(rs.getString("eme_event_id"));
		lj.setEvent_desc(rs.getString("event_desc"));
		return lj;
	}

}
